<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"  
      >
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <h:body> 
            <h2> Currency exchange service </h2>
        <h:form style="text-align:right">
            <c:set var="registered" scope="view" value="#{userManagedBean.registered}"/>
            <c:if test="${registered}">
                <ui:include src="/pages/common/greetings.xhtml" />
            </c:if>
            <c:if test="${!registered}">
                <ui:include src="/pages/common/login.xhtml" />
            </c:if>
        </h:form>
    </h:body>
</html>